package com.yonyou.gmmc.service.forum.model;

import java.util.Date;
import javax.persistence.*;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

@Table(name = "TT_FORUM_REPLY")
public class TtForumReply {
    @Id
    @Column(name = "REPLY_ID")
    @SequenceGenerator(name="",sequenceName="SEQ_TT_FORUM_REPLY")
    private Long replyId;

    @Column(name = "POTENTIAL_USER_ID")
    private Long potentialUserId;

    @Column(name = "USER_TYPE")
    private Long userType;

    @Column(name = "TOPIC_ID")
    private Long topicId;

    @Column(name = "REPLY_NAME")
    private String replyName;

    @Column(name = "REPLY_CONTENT")
    private String replyContent;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "POST_TIME")
    private Date postTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "CREATE_DATE")
    private Date createDate;

    @Column(name = "CREATE_BY")
    private Long createBy;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "UPDATE_DATE")
    private Date updateDate;

    @Column(name = "UPDATE_BY")
    private Long updateBy;

    @Column(name = "DELETE_FLAG")
    private Short deleteFlag;
    
    @Column(name = "USER_NAME")
    private String userName;
    
    @Column(name = "HEAD_IMGURL")
    private String headImgURL;
    
    private String postTimeStr;
    
    private String openId;
    
    private Integer ifMy;

    /**
     * @return REPLY_ID
     */
    public Long getReplyId() {
        return replyId;
    }

    /**
     * @param replyId
     */
    public void setReplyId(Long replyId) {
        this.replyId = replyId;
    }

    /**
     * @return POTENTIAL_USER_ID
     */
    public Long getPotentialUserId() {
        return potentialUserId;
    }

    /**
     * @param potentialUserId
     */
    public void setPotentialUserId(Long potentialUserId) {
        this.potentialUserId = potentialUserId;
    }

    /**
     * @return USER_TYPE
     */
    public Long getUserType() {
        return userType;
    }

    /**
     * @param userType
     */
    public void setUserType(Long userType) {
        this.userType = userType;
    }

    /**
     * @return TOPIC_ID
     */
    public Long getTopicId() {
        return topicId;
    }

    /**
     * @param topicId
     */
    public void setTopicId(Long topicId) {
        this.topicId = topicId;
    }

    /**
     * @return REPLY_NAME
     */
    public String getReplyName() {
        return replyName;
    }

    /**
     * @param replyName
     */
    public void setReplyName(String replyName) {
        this.replyName = replyName;
    }

    /**
     * @return REPLY_CONTENT
     */
    public String getReplyContent() {
        return replyContent;
    }

    /**
     * @param replyContent
     */
    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    /**
     * @return POST_TIME
     */
    public Date getPostTime() {
        return postTime;
    }

    /**
     * @param postTime
     */
    public void setPostTime(Date postTime) {
        this.postTime = postTime;
    }

    /**
     * @return CREATE_DATE
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @param createDate
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * @return CREATE_BY
     */
    public Long getCreateBy() {
        return createBy;
    }

    /**
     * @param createBy
     */
    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }

    /**
     * @return UPDATE_DATE
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     * @param updateDate
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    /**
     * @return UPDATE_BY
     */
    public Long getUpdateBy() {
        return updateBy;
    }

    /**
     * @param updateBy
     */
    public void setUpdateBy(Long updateBy) {
        this.updateBy = updateBy;
    }

    /**
     * @return DELETE_FLAG
     */
    public Short getDeleteFlag() {
        return deleteFlag;
    }

    /**
     * @param deleteFlag
     */
    public void setDeleteFlag(Short deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getHeadImgURL() {
		return headImgURL;
	}

	public void setHeadImgURL(String headImgURL) {
		this.headImgURL = headImgURL;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public Integer getIfMy() {
		return ifMy;
	}

	public void setIfMy(Integer ifMy) {
		this.ifMy = ifMy;
	}

	public String getPostTimeStr() {
		return postTimeStr;
	}

	public void setPostTimeStr(String postTimeStr) {
		this.postTimeStr = postTimeStr;
	}

    
}